<?php
require_once '_portal.php';
$b = $_GET['b'];
$e = $_GET['e'];
$sql = "SELECT * FROM `2kt_rectify_record` WHERE `eventTime` >= '{$b} 00:00:00' AND `eventTime` <= '{$e} 23:59:59' ORDER BY `eventTime` ASC";
$res = exec_sql($sql);
if ($res) {
  output(array('content' => $res, 'sql' => $sql, 'status' => 'successed'));
} else {
  output(array('sql' => $sql, 'status' => 'failed'));
}